#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;
int a[100];
void abc(int n)
{
	int i, j;
	for (i = 1; i < n; i++)
	{
		for (j = 0; j < n; j++)
		{
			a[j] *= 2;
		}
		a[0] += 1;
		for (j = 0; j < n; j++)
			if (a[j] > 9)
			{
				a[j + 1] += a[j] / 10;
				a[j] = a[j] % 10;
			}
	}
}
int main()
{
	int n;
	cin >> n;
	a[0] = 1;
	int i, j;
	abc(n);
	for (j = 0; j < n; j++)
	{
		a[j] *= 2;
	}
	for (j = 0; j < n; j++)
	{
		if (a[j] > 9)
		{
			a[j + 1] += a[j] / 10;
			a[j] = a[j] % 10;
		}
	}
	i = 99;
	while (a[i] == 0 && i > 0) i--;
	while (i >= 0)
	{
		cout << a[i];
		i--;
	}
	return 0;
}